package top.ooyyh.bytheway.service;

import org.springframework.stereotype.Service;
import top.ooyyh.bytheway.entity.User;
import top.ooyyh.bytheway.model.request.CreateUserRequest;
import top.ooyyh.bytheway.model.request.LoginRequest;
import top.ooyyh.bytheway.model.request.RegisterRequest;
import top.ooyyh.bytheway.utils.Result;

@Service
public interface UserService {
    Result login(LoginRequest loginRequest);

    Result loginWithOutPass(String token);

    Result getUserMenu(String token);

    Result registerByEmail(RegisterRequest registerRequest);

    Result register(RegisterRequest registerRequest);

    Result createUser(CreateUserRequest user);

    Result getAllRolePower();
}
